import request from '@/utils/request'

// 查询报修设置列表
export function listRepairManage(query) {
  return request({
    url: '/waitress/RepairManage/list',
    method: 'get',
    params: query
  })
}

// 查询报修设置详细
export function getRepairManage(id) {
  return request({
    url: '/waitress/RepairManage/' + id,
    method: 'get'
  })
}

// 新增报修设置
export function addRepairManage(data) {
  return request({
    url: '/waitress/RepairManage',
    method: 'post',
    data: data
  })
}

// 修改报修设置
export function updateRepairManage(data) {
  return request({
    url: '/waitress/RepairManage',
    method: 'put',
    data: data
  })
}

// 删除报修设置
export function delRepairManage(id) {
  return request({
    url: '/waitress/RepairManage/' + id,
    method: 'delete'
  })
}

// 导出报修设置
export function exportRepairManage(query) {
  return request({
    url: '/waitress/RepairManage/export',
    method: 'get',
    params: query
  })
}